//
//  LWZFmListDatasModel.m
//  MusicFM
//
//  Created by 王景欣 on 16/1/11.
//  Copyright © 2016年 LWZ. All rights reserved.
//

#import "LWZFmListDatasModel.h"

@implementation LWZFmListDatasModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
   //榜单
    if ([key isEqualToString:@"list"]) {
        if (!self.listArray) {
            self.listArray = [NSMutableArray arrayWithCapacity:0];
        }
        NSArray *array = value;
        for (NSDictionary *dic in array) {
            
            LWZFmListModel *listModel = [[LWZFmListModel alloc] initWithDataSource:dic];
            [self.listArray addObject:listModel];
        }
    }
}

@end
